two variable with one constraint